package com.demo.service.impl;

import com.demo.dao.SaleLevelMapper;
import com.demo.entity.SaleLevel;
import com.demo.service.ISaleLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by liushaokang on 2017/3/14.
 */

@Service
public class SaleLevelServiceImpl implements ISaleLevelService {

    @Autowired
    private SaleLevelMapper dao;


    @Override
    public int deleteByPrimaryKey(Integer id) {
        return 0;
    }

    @Override
    public int insert(SaleLevel record) {
        return 0;
    }

    @Override
    public int insertSelective(SaleLevel record) {
        return dao.insertSelective(record);
    }

    @Override
    public SaleLevel selectByPrimaryKey(Integer id) {
        return dao.selectByPrimaryKey(id);
    }

    @Override
    public List<SaleLevel> selectAll() {
        return dao.selectAll();
    }

    @Override
    public int updateByPrimaryKeySelective(SaleLevel record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(SaleLevel record) {
        return 0;
    }
}
